using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Gadgets.Common
{
    public partial class InvestorComfirmation : Form
    {
        public string account_no = string.Empty;
        public InvestorComfirmation()
        {
            InitializeComponent();
        }

        private void InvestorComfirmation_Load(object sender, EventArgs e)
        {
            try
            {
                DataSet dtsCashInfo = ABSCommonLibrary.DoInquiry(
                    CommonLibrary.CommonLibrary.BOSC006001, new object[1] { account_no });
                if (dtsCashInfo.Tables[0].Rows.Count > 0)
                {
                    DataRow _row = dtsCashInfo.Tables[0].Rows[0];

                    txtAcctDesc.Text = _row["NAME"].ToString();
                    labelCardId.Text = _row["CARD_NO"].ToString();
                    if (_row["ASSIGN_NAME"].ToString() != "")
                    {
                        txtNoteAssign.Text = (_row["ASSIGN_NAME"].ToString() +
                            " CMND-HC: " + _row["ASSIGN_CARD_NO"].ToString() + " - " + _row["NOTES_ASSIGN"].ToString());
                    }
                }
                
            }
            catch (Exception ex)
            {
                ABSCommonLibrary.ShowErrorMessage(ex.ToString()); ;
            }
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}